package cn.xiyan.baas.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.xiyan.baas.entity.FileEntity;
import cn.xiyan.baas.mapper.FileMapper;
import cn.xiyan.baas.service.IFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ruiyanglee
 * @since 2020-08-25
 */
@Service
public class FileServiceImpl extends ServiceImpl<FileMapper, FileEntity> implements IFileService {
    @Resource
    private FileMapper fileMapper;

    @Override
    public FileEntity findById(String id) {
        return fileMapper.selectById(id);
    }

    @Override
    public List<FileEntity> findByUserId(String userId) {
        return fileMapper.findByUserId(userId);
    }
}
